package cn.tedu.imop.marketing.dao.repository.impl;

import cn.tedu.imop.marketing.dao.mapper.CouponCodeMapper;
import cn.tedu.imop.marketing.dao.repository.CouponCodeRepository;
import cn.tedu.imop.marketing.entity.CouponCode;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class CouponCodeRepositoryImpl implements CouponCodeRepository {
    private final CouponCodeMapper couponCodeMapper;
    public CouponCodeRepositoryImpl(CouponCodeMapper couponCodeMapper) {
        this.couponCodeMapper = couponCodeMapper;
    }
    @Override
    public int insertBatchCouponCode(List<CouponCode> souponCodes) {
        return couponCodeMapper.insertBatch(souponCodes);
    }
}
